id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Misc LambdasStringLambda2

fun String.combine2(): String = chunked(1).mapIndexed { i, s -> i.toString() + s }.joinToString(", ") fun main() { println("g".combine2()) println("house".combine2()) }

Click on to run the code

⬅ Back